home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
LAN
/
NLMLOC20.ARJ
/
NLMLOCK2.DOC
< prev
next >
Wrap
Text File
|
1992-08-01
|
10KB
|
289 lines
NLMLOCK
NetWare File Server Console Locker
Version 2 (PCX version)
Author Jason Hart
ShareWare
NLMLOCK is an automatic console lockup program designed
to wait for a specified period of console inactivity
(even RCONSOLE) and then secure the console until either
the console or supervisor password is entered.
NLMLOCK2.NLM supersedes NLMLOCK.NLM with a number of new
features.
(1) A supervisor verify statement has been added so now
you may choose to have either the supervisor or console
password unlock the server screen or even have both.
(2) PCX graphics is also supported on most file servers
with either an EGA card (above 64k) or VGA standard card.
A standard PCX file has been supplied SCRNSAVE.PCX,
however any filename may be used by using the command
line /F option. The image attributes for customising or
replacing the existing PCX with your own are 640x480 by
16 colours and 4 bit planes.
(3) Enhanced RCONSOLE support has been added through a
driver NLM (NLMREM.NLM). This allows your RCONSOLE
terminal to access your fileserver even though you have
it configured with a PCX graphics screen lockup.
(4) The lockup time can now be configured to a user
selected time. The screen save will activate at 2x the
amount entered.
(5) A PCX graphic logo screen save has been added. This
logo is customisable and has the resolution of 64x64 with
16 colours and 4 bit planes.
(6) Automatic lockup feature will enable the server
console lock to startup immediately upon bootup and
whenever unlocked it will wait for the normal keyboard
inactivity period before relocking the console.
=====================================================
OPTIONS
LOAD NLMLOCK2 <time> <options>
<time> in minutes
<options>
/G use PCX graphics with default PCX file of
SYS:SYSTEM\SCRNSAVE.PCX.
/P<password> eg /PPASSWORD
/F<filename> You may use another PCX file other than the
default of SCRNSAVE.PCX.
/A Override the VGA checking routine. This can be
useful on cards that are not %100 PS/2 VGA
compatible.
/N Lock the screen immediatly upon startup of
NLMLOCK2.NLM. Normal inactivity counter
will apply thereafter.
===================================================
FILES
NLMLOCK2.NLM
Is the master program which locks a NetWare v3.1x console
after the nominated period and may display either a
graphics or text backdrop.
NLMREM.NLM
This is a support driver file for NLMLOCK2.NLM and
REMOTE.NLM which is used to inform NLMLOCK when a remote
console is active, so the graphics backdrop can be
temporily turned off.
NLMLOCK2.DOC
This document file
SSAVE.ZAP
This is the text backdrop file which is in a screen based
format and can be customised as required. This file must
reside in the SYS:SYSTEM directory.
SCRNSAVE.PCX
The PCX backdrop file used when NLMLOCK2 is in graphics
mode. This file can be customised as required or by using
the /F option you may override this file as the backdrop.
Must have the resolution of 640x480, 16 colours.
LOGO.PCX
This is a customisable PCX file used for the backdrop
screen save. It is currently a Novell symbol and must
have the resolution of 64x64 and 16 colours.
====================================================
REGISTERING
If you would like to register your shareware copy and
receive the LATEST version with some extra NLM utilities
you may send a donation of $45 (donations of more than
$45 are greatly appreciated !) to:
Jason Hart
Post Office Box 92
Canterbury, Victoria, 3126
Australia.
If you have any suggestions, questions about code or
customisations, they are welcome and I am reachable on
CompuServe at 100033,3202 or via the above address.
DISTRIBUTION
Feel free to distribute this program and documentation,
but please do not modify or sell it without first
contacting me. Customised unique security versions are
also available or if you would like to bundle it with
your NetWare server installations, drop me a line.
=====================================================
Example setups
(1)
:LOAD NLMLOCK2 10 /G /PPASSWORD
This command line would activate NLMLOCK to lockup the
console after 10 minutes of keyboard or RCONSOLE
inactivity. At which point the default graphics file
(SYS:SYSTEM\SCRNSAVE.PCX) would be display in graphics
mode. To unlock the console you could enter either the
password "PASSWORD" (/P option) or the supervisor
password. After entering the password the console is
returned to text state as per normal. If the console was
left in the locked state for another 10 minutes the
LOGO.PCX screen save would be tiled and then cleared from
the screen.
(2)
:LOAD NLMLOCK2 10 /FSYS:SYSTEM\NOVELL.PCX /N
The console would lock immediately upon startup (/N) and
then display the PCX file NOVELL.PCX (/F option). As no
console password was entered (with /P), only the
supervisor password could unlock the console. When the
console was unlocked it would relock at 10 minutes of
keyboard inactivity. However if the console was not
locked the screen save PCX (LOGO.PCX) would be tiled
across the screen.
(3)
:LOAD NLMLOCK2 15
This is a basic config for use where no EGA or VGA card
is available. It will use the ZAP file SCRNSAVE.ZAP and
lock the console screen as before except only with text.
the screen save is activated at 2x the user specified
time ie if you specified a lockup of 10 minutes then the
zap screen would be displayed at the first 10minutes of
keyboard inactivity and then at the next ten minutes of
keyboard inactivity the screen save would be activated.
(4)
:LOAD REMOTE PASSWORD
:LOAD NLMLOCK2 10 /G /FSYS:SYSTEM\SERVER.PCX /N
:LOAD NLMREM
:LOAD RSPX
This is a sample loading sequence for using RCONSOLE with
NLMLOCK2.NLM. NLMREM is a driver NLM designed to watch
connection and clear requests from REMOTE. These requests
are passed back to NLMLOCK2 so it knows when to use
graphics and when not to. All other options has been
explained in other scenario's. NLMREM must be loaded
after REMOTE and NLMLOCK2 and should (although not
critical) be loaded before RSPX.NLM. This will ensure
that no RCONSOLES get in while we are still loading
NLMREM.
=======================================================
QUESTIONS
Q. How does the PCX Graphics work on the fileserver and
what will happen with RCONSOLE.NLM ?
A. NLMLOCK2 initialises the VGA/EGA card into graphics
mode and displays a PCX screen in 16 colours. RCONSOLE
does not support graphics modes, so when a RCONSOLE
terminal attaches to the fileserver NLMLOCK2 puts the
console back into text mode and displays the ZAP screen
as per normal non graphics monitors. When RCONSOLE
disconnects NLMLOCK re-inits the graphics mode and
displays the PCX image.
Q. What is NLMREM.NLM ?
A. NLMREM.NLM is the RCONSOLE driver used to trap
connections and clears from RCONSOLE. It must be loaded
after NLMLOCK2 and REMOTE. If NLMREM.NLM is not loaded
NLMLOCK2 cannot tell when a RCONSOLE connects so the
console is left in graphics mode and the remote terminal
receives a blank rconsole screen until either the console
or supervisor password is entered and then everything is
normal.
Q. How do I Make my own ZAP text screen.
A. The ZAP screen is simply a screen memory dump. It is
made up of a character code and a colour code. There are
a number of tools available on BBS's to edit these type
of screens or you may manually change it using a file
editor.
Q. How do I make my own PCX screens.
A. Most graphics paint programs has the ability to export
a graphic image in PCX format. I personally use MicroSoft
Windows or OS/2 v2.0 to create mine. You must ensure that
with the common version of NLMLOCK2 that you use these
exact image attributes or else your PCX will look jumbled
when displayed : 640x480 pixels with 4 planes and 16
colours. You may either replace the scrnsave.PCX file or
create a completely new one and specify it with the /F
option. Remember you may also change the screen save LOGO
(LOGO.PCX) it has the dimensions 64x64, 4 planes and 16
colours.
Q. I have my own PCX file configured but when NLMLOCK
displays it, it appears as garbage.
A. The dimensions of your PCX file are not 640 x 480
pixels with 4 bit planes and 16 colours. Correct the
dimensions and this should then appear correctly.
Q. How much extra memory is taken-up by using PCX
graphics support.
A. In addition to the size of NLMREM.NLM, NLMLOCK using
128k for PCX graphics buffers. This memory is allocated
at program startup and is released when the NLM
terminates. Using the text ZAP screen does not use the
extra 128k.
Q. What will happen if my server ABEND's and NLMLOCK is
active ?
A. If NLMLOCK is in graphics mode then the server console
is returned to text mode, so the NetWare kernel can
display the appropiate ABEND error message. If NLMLOCK is
already in text mode, then NLMLOCK does not change the
screen mode and the Kernel displays the ABEND message.
=========================================================
ACKNOWLEDGMENT
I wish to acknowledge the help of Ken Lowrie from Novell
Austin, for his contributions and examples which have
saved me considerable time and frustration.
=========================================================
DISCLAIMER:
While all care has been taken in the development of this
product, you are using it AT YOUR OWN RISK. It has been
tested on different platforms and with a number of
testing tools to ensure that the product is stable. No
loss of any kind is accepted by the author arising from
the use of any of these programs. You are free to
distribute provided the program and text files are not
changed.